package hxy.bytecode.reflact;

import java.util.Scanner;

public class Phone {
    public static void main(String[] args) {
        Scanner in1 = new Scanner(System.in);
        String nextLine = in1.nextLine();

        if ("iphone".equals(nextLine)) {
            Iphone iphone = new Iphone();
            iphone.call();
        }
        if ("xiaomi".equals(nextLine)) {
            Xiaomi xiaomi = new Xiaomi();
            xiaomi.call();
        }
    }
}

class Xiaomi {
    public void call() {
        System.out.println("xiaomi is calling");
    }
}

class Iphone {
    public void call() {
        System.out.println("iphone is calling");
    }
}